package com.deloitte.snap.service;

import java.util.List;

import com.deloitte.snap.dao.HardwareMasterDAOImpl;
import com.deloitte.snap.vo.HardwareMasterVO;

public class HardwareMasterService extends AbstractService{
	/**
	 * Doc Type bean name in WEB-INF/dataAccessContext.xml
	 */
	private final String DAO_NAME = "hardwareMasterDAO";
	/**
	 * Instance of DAO Class
	 */
	private final HardwareMasterDAOImpl hardwareMasterDAO = (HardwareMasterDAOImpl) getDAO(DAO_NAME);
	
	/**
	 * This method used to retrieve all different categories of document available in DB 
	 * 
	 * @return - Return the collection of document categories
	 */
	public List<HardwareMasterVO> findAllHardwareMasters(){
		List<HardwareMasterVO> hardwareMasters =  null;
		if(hardwareMasterDAO != null){
			hardwareMasters = hardwareMasterDAO.findAll();
		}
		return hardwareMasters;
	}
	
}
